package utils;

import java.time.LocalDateTime;

/**
 * @author
 * @create 2021-11-20 10:07
 */
public class TimeUtils {
    public static LocalDateTime changeStrignToDate(String time)  {
        LocalDateTime localDateTime;
        try{
            localDateTime=LocalDateTime.parse(time);
        }catch (Exception e){
            System.out.println("转换失败");
            e.getMessage();
            return null;
        }
        return localDateTime;
    }
}
